//app.js
App({
  onLaunch: function (option) {
    var that = this
    wx.getStorage({
      key: 'userToken',
      success(res) {
        that.globalData.userToken = res.data
      }
    })
    wx.getStorage({
      key: 'countDown',
      success: function(res) {
        that.globalData.countDown = res.data
      },
    })
  },

  globalData: {
    userToken: '',
    countDown: 0
  }
})